package com.le.tester.javaThink.fifth.chapter14_StreamingProgramming;


/**
 * 描述：peek element
 */
public class Peeking {
    public static void main(String[] args) throws Exception {
        FileToWords.stream("E:\\L.info\\L.Application\\L.Tester\\src\\main\\java\\com\\le\\tester\\java8\\doc\\Cheese.dat")
                .skip(1)
                .limit(4)
                .map(o -> o + " ")
                .peek(System.out::print)
                .map(String::toUpperCase)
                .peek(System.out::print)
                .map(String::toLowerCase)
                .forEach(System.out::print);
    }
}
